package com.hu.zhcc.shiro.entity.tj;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 膳食库
 * </p>
 *
 * @author tj
 * @since 2021-06-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class TMeals extends Model<TMeals> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 编码
     */
    private String code;
    /**
     * 食品名称
     */
    private String name;
    /**
     * 所属类型id,引用膳食类型id
     */
    @TableField("typeId")
    private String typeId;
    /**
     * 100g含能量
     */
    private Integer energy;
    /**
     * 蛋白质含量
     */
    private Integer protein;
    /**
     * 脂肪含量
     */
    private Integer fat;
    /**
     * 碳水化合物含量
     */
    private Integer carbohydrate;
    /**
     * 每kcal能量
     */
    private Integer kcal;
    /**
     * 每kj能量
     */
    private Integer kj;
    /**
     * 高血压，0是，1否
     */
    private Integer hbp;
    /**
     * 糖尿病，0是，1否
     */
    private Integer diabetes;
    /**
     * 冠心病，0是，1否
     */
    private Integer chd;
    /**
     * 脑卒中，0是，1否
     */
    private Integer stroke;
    /**
     * 心脑血管疾病，0是，1否
     */
    private Integer cacd;
    /**
     * 高血脂，0是，1否
     */
    private Integer hyperlipidemia;
    /**
     * 肥胖，0是，1否
     */
    private Integer obesity;
    /**
     * 通风，0是。1否
     */
    private Integer ventilate;
    /**
     * 说明，0是，1否
     */
    private String explains;
    /**
     * 创建时间
     */
    private Date createTime;
    /**
     * 修改时间
     */
    private Date updateTime;

    private TMealsType tMealsType;

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getTypeId() {
        return typeId;
    }

    public void setTypeId(String typeId) {
        this.typeId = typeId;
    }

    public Integer getEnergy() {
        return energy;
    }

    public void setEnergy(Integer energy) {
        this.energy = energy;
    }

    public Integer getProtein() {
        return protein;
    }

    public void setProtein(Integer protein) {
        this.protein = protein;
    }

    public Integer getFat() {
        return fat;
    }

    public void setFat(Integer fat) {
        this.fat = fat;
    }

    public Integer getCarbohydrate() {
        return carbohydrate;
    }

    public void setCarbohydrate(Integer carbohydrate) {
        this.carbohydrate = carbohydrate;
    }

    public Integer getKcal() {
        return kcal;
    }

    public void setKcal(Integer kcal) {
        this.kcal = kcal;
    }

    public Integer getKj() {
        return kj;
    }

    public void setKj(Integer kj) {
        this.kj = kj;
    }

    public Integer getHbp() {
        return hbp;
    }

    public void setHbp(Integer hbp) {
        this.hbp = hbp;
    }

    public Integer getDiabetes() {
        return diabetes;
    }

    public void setDiabetes(Integer diabetes) {
        this.diabetes = diabetes;
    }

    public Integer getChd() {
        return chd;
    }

    public void setChd(Integer chd) {
        this.chd = chd;
    }

    public Integer getStroke() {
        return stroke;
    }

    public void setStroke(Integer stroke) {
        this.stroke = stroke;
    }

    public Integer getCacd() {
        return cacd;
    }

    public void setCacd(Integer cacd) {
        this.cacd = cacd;
    }

    public Integer getHyperlipidemia() {
        return hyperlipidemia;
    }

    public void setHyperlipidemia(Integer hyperlipidemia) {
        this.hyperlipidemia = hyperlipidemia;
    }

    public Integer getObesity() {
        return obesity;
    }

    public void setObesity(Integer obesity) {
        this.obesity = obesity;
    }

    public Integer getVentilate() {
        return ventilate;
    }

    public void setVentilate(Integer ventilate) {
        this.ventilate = ventilate;
    }

    public String getExplains() {
        return explains;
    }

    public void setExplains(String explains) {
        this.explains = explains;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public TMealsType gettMealsType() {
        return tMealsType;
    }

    public void settMealsType(TMealsType tMealsType) {
        this.tMealsType = tMealsType;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
